import pytest
import os
from log import set_log
from mail import send_mail
if __name__ == '__main__':
    set_log()
    pytest.main(["-s","test.py","--alluredir=报告数据","--clean-alluredir"])
    os.system("allure generate 报告数据 -o 报告 --clean")
    send_mail(["weidudiansanglog.txt","报告/index.html"])